<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
    <meta charset="UTF-8">
    <title>银行账号</title>
    <style type="text/css">
    </style>
    <jsp:include page="../../import.jsp" flush="true" />
</head>

<body class="iframeBody">
    <div class="Wrapper">
        <div>
            <div id="pageInTab" class="pageInTab">
                <div tabid="tabBankList" title="银行管理" lselected="true">
                    <iframe frameborder="0" name="tabBankList" id="tabBankList" src="<%=path %>/system/sysBkInfo/toListPage.do"></iframe>
                </div>
                <div tabid="bankAccManage" title="账号管理">
                    <iframe frameborder="0" name="bankAccManage" id="bankAccManage" src="<%=path%>/system/sysBkAccInfo/toListPage.do"></iframe>
                </div>
            </div>
        </div>
    </div>
    
    <script>
    var pageInApp={}; //二级子窗口 to 三级子窗口 接口
    $(function() {
        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: GET_minIframeHeight(),
            onAfterSelectTabItem: function(tabid) {
                if (tabid == "bankAccManage") {
                    var row = pageInApp.seletedBankRow;
                    var parm = '';
                    if(row) parm = row.id
                    var oldUrl=pageInTab.getTabItemSrc(tabid),
                       // url="../settings/bankaccount-manage.htm?parm="+parm;
                        url="<%=path%>/system/sysBkAccInfo/toListPage.do?bkId="+parm;
                    var indexofO=oldUrl.lastIndexOf("/"),
                        indexofU=url.lastIndexOf("/")
                    //alert(url + "\n" + oldUrl);
                    if (oldUrl.slice(indexofO) != url.slice(indexofU)) {
                        pageInTab.setTabItemSrc(tabid, url);
                        pageInTab.reload(tabid);
                    };
                };
                if (parent && parent.mainApp) parent.mainApp.parentTab.onResize();
            }
        });

        $.extend(true, pageInApp, {
            pageInTab: pageInTab
        });
    })
    </script>
</body>

</html>
